<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <meta name="keywords" content="<?php echo CHtml::encode($this->pageTitle) . ',' . CHtml::encode(Yii::app()->name); ?>" />
        <meta name="description" content="<?php echo CHtml::encode($this->pageTitle) . ',' . CHtml::encode(Yii::app()->name); ?>" />
        <title><?php echo CHtml::encode($this->pageTitle) . ' - ' . CHtml::encode(Yii::app()->name); ?></title>
        <script>var baseurl = '<?php echo Yii::app()->baseUrl; ?>'</script>
    </head>
    <body>
        <div id="append_parent"></div>
        <div id="ajaxwaitid"></div>
        <div id="messagelayer"></div>
        <div id="hidesearch" class="fixed" style="top:-51px;">
            <div class="wp cl">
                <div class="z logo cl clmg_t">
                    <a href="<?php echo $this->createUrl('site/index'); ?>" class="z"><img src="<?php echo Yii::app()->request->baseUrl; ?>/images/logo_min.png" align="absmiddle"/></a>
                </div>
                <div class="z searchout search_blue clmg_t" style="margin-left:100px;">
                    <div class="searchform clbd_all">
                        <form action="<?php echo Yii::app()->request->baseUrl; ?>/searchform/" method="get" class="cl">
                            <span class="cmicons z"></span>
                            <input type="text" name="k" class="z holder-input" value="" placeholder="搜索餐品名、餐厅名、商圈" style="width:500px;"/>
                            <button type="submit" name="searchbtn" class="y">搜索</button>
                        </form>
                    </div>
                </div>
            </div>
        </div>
        <div id="hdcm">
            <div class="whitebg">
                <div class="wp cl">
                    <div class="z logo cl">
                        <a href="<?php echo $this->createUrl('site/index'); ?>" class="z"><img src="<?php echo Yii::app()->request->baseUrl; ?>/images/logo2.png" align="absmiddle"/></a>
                        <span class="z"><div class="common-zone"><img src="<?php echo Yii::app()->request->baseUrl; ?>/images/loading.gif"/></div>
                            <a href="javascript:void(0);" onclick="ajaxWindow('切换商圈', 'getBusinessZone','account');">切换地址&gt;</a></span>
                    </div>
                    <div class="z searchout search_blue">
                        <div class="searchform">
                            <form action="<?php echo Yii::app()->request->baseUrl; ?>/searchform/" method="get" class="cl">
                                <span class="cmicons z"></span>
                                <input type="text" name="k" class="z holder-input" value="" placeholder="搜索餐品名、餐厅名、商圈"/>
                                <button type="submit" name="searchbtn" class="y">搜索</button>
                            </form>
                        </div>
                        <!--<div class="tpsearchlink">
                            <a href="<?php // echo $this->createUrl('search/index', array('k' => urlencode('油焖大虾'))); ?>">油焖大虾</a><a href="<?php // echo $this->createUrl('search/index', array('k' => urlencode('油焖大虾'))); ?>">油焖大虾</a><a href="<?php // echo $this->createUrl('search/index', array('k' => urlencode('油焖大虾'))); ?>">油焖大虾</a><a href="<?php // echo $this->createUrl('search/index', array('k' => urlencode('油焖大虾'))); ?>">油焖大虾</a>
                        </div>-->
                    </div>
                    <div class="userlayer y">
                        <?php if (Yii::app()->user->isGuest): ?><a href="<?php echo $this->createUrl('site/login'); ?>"><span class="reg_log_ico cmicons z"></span>登录</a><span class="pipe">|</span><a href="<?php echo $this->createUrl('site/register'); ?>">注册</a><?php else: ?><a href="<?php echo $this->createUrl('site/index'); ?>">首页</a><span class="pipe">|</span><?php echo Yii::app()->user->name; ?><span class="pipe">|</span><a href="<?php echo $this->createUrl('order/confirmation'); ?>">购物车</a><span class="pipe">|</span><a href="<?php echo $this->createUrl('home/index'); ?>">订单</a><span class="pipe">|</span><a href="<?php echo $this->createUrl('home/coupons'); ?>">红包</a><span class="pipe">|</span><a href="<?php echo $this->createUrl('home/index'); ?>">账号管理</a><span class="pipe">|</span><a href="<?php echo $this->createUrl("site/logout") ?>">退出</a><?php endif; ?>
                    </div>
                </div>
            </div>
        </div>